\begin{tikzpicture}[>=Stealth]
    \draw [->] (-3.5,0) -- (3.5,0) node[anchor=north] {$x$};
    \draw [->] (0,-3.5) -- (0,3.5) node[anchor=east] {$y$};
    \node at (0.3,-0.3) {$O$};
    \foreach \x in {1} {
        \draw (\x,0.2) -- (\x,0) node[anchor=north] {$\x$};
    }
    \foreach \y in {1} {
        \draw (0.2,\y) -- (0,\y) node[anchor=east] {$\y$};
    }
    
    \draw[domain=-0.5:1.7] plot (\x, {3 * \x - 2}) +(0, 0.3) node {$y = 3x - 2$};
    \draw[domain=-3:3, dash pattern=on 5mm off 2mm] plot (\x, \x) +(0.5, -0.5) node {$y = x$};
    \draw[domain=-3:3] plot (\x, {(\x + 2) / 3}) +(0, -0.5) node {$y = \displaystyle \frac{x + 2} 3$};
\end{tikzpicture}
